import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import sun.applet.Main;

class A{
    int age=18;
    static String name1="x";
static class B{
     int age=12;
     static final String name1="xx";
        public void Print (){
         A A=new A();
         System.out.println(A.age);
         System.out.println(A.name1);
         System.out.println(age);
         System.out.println(name1);

     }
    }
    public void Print2(){
        B B=new B();
         /*System.out.println(B.name);
         System.out.println(B.age);*/
    }
    public void print3(){
        class C{
            int age=22;
            /*static final String name="xxx";*/
        }
       /* System.out.println(C.name);*/

    }
}
public class Person {
    public static void main(String[] args) {
    A A=new A();
   /* A.B B=A.new B();*/
        A.B B=new A.B();
    B.Print();
        /*A.B B=new A.B();
        B.Print();*/
    A.Print2();
    A.toString();
    A.print3();
    }
}